#!/usr/bin/php -d openbase_dir=/
<?php
if (count($argv) < 2) 
    die ("Give a ClassName without Test suffix pls\n");

$class = $argv[1];

$filename = $class."Test.php";
$testClass = $class."Test";
$skeleton  = <<<TEXT
<?php
require_once 'PHPUnit/Framework.php';

class $testClass extends PHPUnit_Framework_TestCase
{
    public function setUp()
    {

    }

    public function tearDown()
    {

    }
}
?>
TEXT;
$fp = fopen($filename, "w");
fputs($fp, $skeleton);
fclose($fp);
?>
